package com.rocksea.app.utils;

import android.os.AsyncTask;

/**
 * Created by 吴志华 on 2017/10/23.
 *
 * @FileName:com.rocksea.app.utils.BaseAskTask.java
 */

public class BaseAskTask extends AsyncTask<Void,Void,Void>
{
    private Runnable runnable;
    public BaseAskTask(Runnable runnable) {
        this.runnable = runnable;
    }

    @Override
    protected Void doInBackground(Void... params) {
        runnable.run();
        return null;
    }

    @Override
    protected void onPreExecute() {
        super.onPreExecute();
    }


    @Override
    protected void onPostExecute(Void t) {
        super.onPostExecute(t);
    }
}
